package com.cn.base;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;


/**
 * @ClassName: BaseService
 * @Description: TODO
 * @author Administrator
 * @date 2017年6月8日
 */

public interface BaseService <T extends BaseEntity<T>>{
	
    public abstract T get(T entity);
    
    public abstract T get(Map<String, Object> params);


    public abstract List<T> findList(Map<String, Object> params);


    public abstract int deleteByParams(Map<String, Object> params);
    
    public abstract int deleteByIds(String[] ids) throws Exception;


    public abstract int save(T entity)  throws Exception;
    
    public abstract int update(T entity);
    
    public abstract PageInfo<T> findPage(Map<String, Object> params);

    

}
